<?php
include 'functions.php';
function __autoload($className){
    include "./Controller/{$className}.php";
}
//控制器
$c = isset($_GET['c']) ? $_GET['c'] : 'Index';
$c = "{$c}Controller";
$c = new $c;
//方法
$a = isset($_GET['a']) ? $_GET['a'] : 'index';
$c->$a();